package cc.loac.heba.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigInteger;
import java.util.Date;

/**
 * 用户实体类
 */
public class User {
    private Integer userId;
    private String username = "";
    private String email;
    private String password;
    @JSONField(format ="yyyy-MM-dd kk:mm:ss")
    private Date createTime;
    @JSONField(format ="yyyy-MM-dd kk:mm:ss")
    private Date lastLoginTime;
    private String schoolName = "";
    private String avatar = "";
    private String birthDay;
    private String gender = "";
    private String profile = "";
    private Integer fans;
    private Integer follows;
    private Integer likes;
    private Integer collections;


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getBirthDay() {
        return birthDay;
    }

    public void setBirthDay(String birthDay) {
        this.birthDay = birthDay;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public Integer getFans() {
        return fans;
    }

    public void setFans(Integer fans) {
        this.fans = fans;
    }

    public Integer getFollows() {
        return follows;
    }

    public void setFollows(Integer follows) {
        this.follows = follows;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Integer getCollections() {
        return collections;
    }

    public void setCollections(Integer collections) {
        this.collections = collections;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                ", createTime=" + createTime +
                ", lastLoginTime=" + lastLoginTime +
                ", schoolName='" + schoolName + '\'' +
                ", avatar='" + avatar + '\'' +
                ", birthDay=" + birthDay +
                ", gender='" + gender + '\'' +
                ", profile='" + profile + '\'' +
                ", fans=" + fans +
                ", follows=" + follows +
                ", likes=" + likes +
                ", collections=" + collections +
                '}';
    }
}
